package com.ckcool.blog.service;

import com.ckcool.blog.dao.pojo.SysUser;
import com.ckcool.blog.vo.Result;
import com.ckcool.blog.vo.params.LoginParam;
import com.ckcool.blog.vo.params.RegisterParam;

/**
 * @author ckcool
 */
public interface LoginService {
    /**
     * 登录功能
     * @param loginParam
     * @return
     */
    Result login(LoginParam loginParam);

    SysUser checkToken(String token);

    Result logout(String token);

    Result register(RegisterParam registerParam);
}
